home *** CD-ROM | disk | FTP | other *** search
- Path: news.cencom.net!ns!tanp
- From: tanp@ns (Bill Wendling)
- Newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
- Subject: Re: When should I close a file?
- Followup-To: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
- Date: 31 Jan 1996 07:11:59 GMT
- Organization: Cen-Com Internet
- Message-ID: <4en4nv$45k@news.cencom.net>
- References: <DLx4tF.Hs0@un.seqeb.gov.au>
- NNTP-Posting-Host: ns.cencom.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- Anthony Lee inexplicably wrote:
- } I have a C program in ULTRIX and OSF.
-
- } The program inputs lines of data representing coordinates of lightning
- } strikes. The program records the data arrival time and translates
- } the coordinates (for plotting).
-
- } The datafile can remain open for days before a strike is recorded.
- } Or in a storm many strikes can arrive within a few seconds.
-
- } My question is, if the program run continuously then how often
- } should I close the file as oppose to just saving it?
-
- I know of no set standard of how long the file should remain open. I
- guess that you don't want to close it because of the immediacy(sp?) of
- needing to record the data. I would go with just saving it.
-
- } voice:+61 7 3407 4541 Death to the Daleks!!!!
-
- Right On! :)
-
-
- --
- Bill Wendling | "Pinky, are you thinking what I'm thinking?"
- tanp@ns.cencom.net | "I think so, Brain, but burlap chafes me so."
- "Boom Shanka" | Finger me for my Geek Code...NOW!
-